package ssm.ann.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ssm.ann.pojo.User;

import java.util.HashMap;
import java.util.Map;

//@Controller
@RestController
public class HelloController {

    @RequestMapping("zxc")
    public Object index(User user) {
        return user;
    }

    @GetMapping("hw")
    public Object hw(String xx) {
        Map<String, Object> map = new HashMap<>(1);
        map.put("hw", "hw:" + xx);

        return map;
    }
}
